﻿<%@ page language="java" pageEncoding="UTF-8" %>
<%@ taglib uri="/struts-tags" prefix="s" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <%@include file="../../common/include_list_head.jsp" %>
    <script type="text/javascript">

        $(function () {
            $(".reset").click(function () {
                if (window.confirm("确定重置该用户密码吗?")) {
                    var userid = $(this).parents("tr:first").attr("uid");
                    var url = "${basePath}/business/resetPassword-doReset.action?wid=" + userid;
                    $.post(url, function (data) {
                        alert(data);
                    });
                }
            });
        });
    </script>
</head>

<body>
<div id="scrollContent">
    <s:hidden id="msg"/>
    <s:if test="actionErrors.size()>0 || actionMessages.size()>0 || fieldErrors.size()>0">
        <div id="SystemErrorMessage">
            <s:actionerror/>
            <s:actionmessage/>
            <s:fielderror/>
        </div>
    </s:if>

    <div class="box_tool_mid padding_right5">
        <div class="center">
            <div class="left">
                <div class="right">
                    <div class="padding_top8 padding_left10">
                        <table>
                            <s:form theme="simple" name="ysform">
                                <s:hidden name="pager.formname" value="ysform"/>
                                <s:hidden name="pager.currentPageno" id="yspager_currentPageno"/>
                                <tr>
                                    <td>&nbsp;</td>
                                    <td align="center" nowrap="nowrap" class="">&nbsp;状态：
                                        <s:select id="state" name="tsysUser.state" list="#{'-1':'全部','1':'可用','0':'禁用'}"
                                                  listKey="key" listValue="value" onchange="super_doSearch()"/>
                                    </td>
                                    <td align="center" nowrap="nowrap" class="">&nbsp;登录标识：
                                        <s:textfield name="tsysUser.userloginid" id="userLoginId" maxlength="50" cssStyle="width: 100px;"/>
                                    </td>
                                    <td align="center" nowrap="nowrap" class="">&nbsp;用户名称：
                                        <s:textfield name="tsysUser.username" id="userName" maxlength="30" cssStyle="width: 100px;"/>
                                    </td>
                                    <td align="center" nowrap="nowrap" class="">&nbsp;身份证号：
                                        <s:textfield name="tsysUser.sfzh" id="sfzh" maxlength="18" cssStyle="width: 150px;"/>
                                    </td>
                                    <td>
                                        <button onclick="super_doSearch()" type="button"><span
                                                class="icon_find">查询</span></button>
                                        <button onclick="doreset();" type="button"><span class="icon_recycle">重置</span>
                                        </button>
                                    </td>
                                </tr>
                            </s:form>
                        </table>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div id="userRoleMenuButton">
    </div>
    <div>
        <table class="tableStyle" headFixMode="true"
               useMultColor="false" useCheckBox="false">
            <tr>
                <th width="100">登录标识</th>
                <th width="120">用户名称</th>
                <th width="120">身份证号</th>
                <th width="150">所属部门</th>
                <th width="80">状态</th>
                <th width="80">操作</th>
            </tr>
            <s:iterator value="resultData">
                <tr uid="${userid}">
                    <td><s:property value="userloginid"/></td>
                    <td><s:property value="username"/></td>
                    <td><s:property value="sfzh"/></td>
                    <td><s:property value="orname"/></td>
                    <td>
                        <s:if test="state==0">禁用</s:if>
                        <s:else>可用</s:else>
                    </td>
                    <td><span style="color:#0000ff;cursor: pointer" class="reset">重置密码</span></td>
                </tr>
            </s:iterator>
        </table>
    </div>

    <div style="height: 45px;">
        <div id="pagelist" style="display: none">
            <s:property value="pager.postToolBar" escape="false"/>
        </div>
        <div class="clear"></div>
    </div>

</div>
</body>
</html>
